{% extends '::backend.html.twig' %}
{% block contenido %}
         {% include 'BackendBundle:Default:flashAlerts.html.twig'%}

<legend>Editar Tipo de Cargo</legend>
    <form class="form-horizontal"  action="{{ path('tipocargo_update', { 'id': entity.id }) }}" method="post" {{ form_enctype(edit_form) }}>

{#<form action="{{ path('tipocargo_update', { 'id': entity.id }) }}" method="post" {{ form_enctype(edit_form) }}>#}
    {# <div class="control-group">
        {{ form_widget(edit_form) }}
    </div> #}       
                <div class="control-group">
                <label class="control-label required">Nombre</label>
                    {#{{ form_errors(form.codigo) }} #}
                <div class="controls">
                    {{ form_widget(edit_form.nombre) }}
                </div>
                </div>
                <div class="control-group">
                    <label class="control-label required">Duraci&oacute;n</label>
                    {#{{ form_errors(form.codigo) }} #}
                <div class="controls">
                    {{ form_widget(edit_form.duracion) }}
                </div>
                </div>
            <div class="form-actions">
        <button class="btn btn-success" type="submit"><i class="icon-ok icon-black"></i> Guardar</button>
            <a class="btn btn-danger" href="{{ path('tipocargo', { 'id': entity.id }) }}"><i class="icon-remove icon-black"></i>
                Cancelar
            </a>
    </div>
</form>        
{% endblock %}
